package day04.homework;

public class ArrayDemo {
    public static void main(String[] args) {
        int[] a = new int[5];
        double[] b = new double[12];
        boolean[] c = new boolean[10];

        int[] d = new int[]{1, 2, 2, 4, 5, 6};
        int[] e;
        e = new int[]{1, 2, 3};
        int[] f = {2, 5, 4, 6, 5};

        int[] g = new int[3];
        g[0] = 1;
        g[1] = 2;
        g[2] = 3;

        System.out.println(g.length);//3
        System.out.println(g[0]+" "+g[1]+" "+g[2]);//1 2 3
        System.out.println(g[g.length-1]);//3

    }
}
